package com.chushouya.product.dto.admin.productsku;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商品SKU价格更新DTO
 */
@Data
@ApiModel("商品SKU价格更新DTO")
public class ProductSkuPriceUpdateDTO {

    /**
     * SKU ID
     */
    @ApiModelProperty(value = "SKU ID", required = true)
    @NotNull(message = "SKU ID不能为空")
    private Long skuId;

    /**
     * 最低价格
     */
    @ApiModelProperty(value = "最低价格")
    @DecimalMin(value = "0", message = "最低价格不能小于0")
    private BigDecimal minPrice;

    /**
     * 基础价格
     */
    @ApiModelProperty(value = "基础价格")
    @DecimalMin(value = "0", message = "基础价格不能小于0")
    private BigDecimal basePrice;
}
